package cn.pubinfo.commentapi.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author kuancz
 */
public class Comment {
    private String ota;
    /**
     * 来源酒店/景点
     */
    private Integer tourId;
    /**
     * 评论创建时间
     */
    private String createDate;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 是否好评
     */
    private boolean isPositive;

    /**
     * 评分
     */
    private String star;

    public String getOta() {
        return ota;
    }

    public void setOta(String ota) {
        this.ota = ota;
    }

    public Integer getTourId() {
        return tourId;
    }

    public void setTourId(Integer tourId) {
        this.tourId = tourId;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public boolean isPositive() {
        return isPositive;
    }

    public void setPositive(boolean positive) {
        isPositive = positive;
    }

    public String getStar() {
        return star;
    }

    public void setStar(String star) {
        this.star = star;
    }

    @Override
    public String toString() {
        return "Comment{" +
                ", ota='" + ota + '\'' +
                ", tourId=" + tourId +
                ", createDate='" + createDate + '\'' +
                ", content='" + content + '\'' +
                ", isPositive=" + isPositive +
                ", star='" + star + '\'' +
                '}';
    }
}
